import Taro, { Component } from '@tarojs/taro'
import {Image, View} from '@tarojs/components';
import './index.scss';
import noselect from '../../assets/images/noselect.png'
import select from "../../assets/images/select.png";

export default class Header extends Component {

  static defaultProps = {
    name: ''
  }

  constructor(props) {
    super(props);
  }

  componentWillMount() {

  }

  componentDidMount() {}

  componentWillUnmount() {}

  componentDidShow() {}

  componentDidHide() {}

  goBack() {
    Taro.navigateBack()
  }

  render() {
    const { name } = this.props;

    return <View className="header" >
      <Image className="header_img" src={noselect} onClick={this.goBack.bind()} />
      {name}
    </View>;
  }
}
